export interface ResponseData {
    status: number
    success?: {
        message: string
    }
    error?: {
        message: string
        code: number
    }
}


// 处理方金额占比
export interface HandlePie {
    start_date: string
    end_date: string
    trend: boolean
}
export interface HandlePieResult {
    name: string
    value: number
}
export interface HandlePieResponseData extends ResponseData {
    list: HandlePieResult[]
}

// 出入库历史
export interface InOutHistogram {
    start_date: string
    end_date: string
}
export interface InOutHistogramResponseData extends ResponseData {
    data: {
        date: string[]
        in: number[]
        out: number[]
    }
}

export interface PartDetail {
    start_date: string
    end_date: string
    small_id: number
}
export interface PartDetailResponseData extends ResponseData {
    data: {
        price: [string, number][]
        number: [string, number][]
        value: [string, number][]
    }
}